Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum





Form Formula is deleted using programatic view selection
~Tip Zekfooplopakol 02:44 PM
Domino Designer 6.0.3 Windows XP


My view, by default, contains a form formula and a standard selection formula. Using the code below (via an agent), I notice that the form formula is removed. Is there any programmatic way to reset the form formula?

Dim ws       As New NotesUIWorkspace
Dim uiview   As NotesUIView
Dim view     As NotesView
Dim sFormula As String

Set uiview   = ws.CurrentView
Set view     = uiview.View
sFormula     = |SELECT Form = "test" & status = "completed"|

view.SelectionFormula = sFormula

Call ws.ViewRebuild

Go back